home *** CD-ROM | disk | FTP | other *** search
- Path: access1.digex.net!not-for-mail
- From: ell@access1.digex.net (Ell)
- Newsgroups: comp.lang.c++
- Subject: Re: NEWBIE: Returning 0 as refernce
- Date: 10 Mar 1996 21:13:20 GMT
- Organization: The Universe
- Message-ID: <4hvglg$v4@news4.digex.net>
- References: <4huslk$rpk@badger.wmin.ac.uk>
- NNTP-Posting-Host: access1.digex.net
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Renato Araujo (tqaec@westminster.ac.uk) wrote:
- : I am trying to write bits of Linux in C++. In order to make it fast I try to
- : return references instead of pointers (some classes are rather big). But what
- : is the standard way of returning a reference when it is not found
-
- In C++ both references and pointers are passing by reference. The
- opposite of those two is copying, or passing by value.
-
- Elliott
-